import React from 'react'
// import { Children } from 'react'
const Home=React.lazy(()=>import('../component/Home/home'))
const Search =React.lazy(()=>import('../component/Search/search'))

const About = React.lazy(()=>import('../component/Personal/personal'))
const Balance = React.lazy(()=>import('../component/Balance/balance'))
const Service = React.lazy(()=>import('../component/Service/service'))
const Benefit = React.lazy(()=>import('../component/Benefit/benefit'))
const Exhongbao = React.lazy(()=>import('../component/Ex-hongbao/ex-hongbao'))
const Download = React.lazy(()=>import('../component/Download/download'))
const HomeSearch=React.lazy(()=>import('../component/Home/home_search'))
const Cart = React.lazy(()=>import("../component/Cart/cart"))
const Login = React.lazy(()=>import("../component/Login/Login"))
// const Foot=React.lazy(()=>import('../component/Public/public_foot'))

//const Home = React.lazy(() => import('../component/Home/home'))
//const Search = React.lazy(() => import('../component/Search/search'))
////const Cart = React.lazy(() => import('../component/Cart/cart'))
////const About = React.lazy(() => import('../component/Personal/personal'))
//const HomeSearch = React.lazy(() => import('../component/Home/home_search'))
//const Cart = React.lazy(()=>import("../component/Cart/cart"))
//const Login = React.lazy(() => import("../component/Login/Login"))
//const Foot = React.lazy(() => import('../component/Public/public_foot'))
const HomeCity = React.lazy(() => import('../component/City/getCity'))
const CitySearch=React.lazy(()=>import('../component/City/getcity_search'))



const Everymall =React.lazy(()=>import('../component/Search/el-everymall/Everymall'))
const ElMall =React.lazy(()=>import('../component/Search/el-mall/ElMall'))
const ElSearchHistory =React.lazy(()=>import('../component/Search/el-search-history/ElSearchHistory'))
const routes=[

    {
        id: 0,
        path: '/home',
        component: Home,
        exact: true,
      
    },
    {
        id: 1,
        path: '/search',
        component: Search
    },
    {
        id:2,
        path:'/about',
        component:About
    },
    {
        id:3,
        path:'/balance',
        component:Balance
    },
    {

        id:7,
        path:'/benefit',
        component:Benefit
    },
    {
        id:8,
        path:'/exhongbao',
        component:Exhongbao
    },
    {
        id:4,
        path:'/service',
        component:Service
    },
    {
        id:5,
        path:'/cart',
        component:Cart,
    },

    {
        id:6,
        path:'/',
        component:Login,
    },
   
    
    
    {

        id: 12,
        path: '/home/citysearch',
        component:  CitySearch

    },
     {

        id: 13,
        path: '/home/city',
        component: HomeCity

    },{
        id:21,
        path:'/everymall',
        component:Everymall
    }






]
export default routes